package workers;

import java.util.ArrayList;
import java.util.List;
import main.Message;
import main.User;

/**
 *
 * @author xDrake
 */
public interface IWorker {
    public String test();
    public Boolean isUserExists(String login);
    public Boolean isEmailExists(String email);
    public Boolean addUser(User user);
    public User doLogin(String login, String pass);
    public Boolean sendMessage(Message msg);
    public ArrayList<Message> getLastMessages();
}
